package com.dd.cloud.user.entity.pres;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author xt
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "基础库处方用药")
public class PresBasicsDrugs {

    /**
     * 药品/处方名称表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;


    /**
     * 基础处方id
     */
    @Column(comment = "基础处方id")
    private Integer basicsId;


    /**
     * 药名称
     */
    @Column(comment = "名称",length = 32)
    private String drugName;

    /**
     * 用量
     */
    @Column(comment = "用量",length = 32)
    private String useUint;

    /**
     * 煎法
     */
    @Column(comment = "煎法",length = 32)
    private String decocting;


    /**
     * 状态
     */
    @Column(comment = "状态 1.正常 -1.删除")
    private Integer status;


    /**
     * 创建时间
     */
    @Column(comment = "创建时间")
    private LocalDateTime createDate;


}
